package com.heima.media.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.media.controller.WmChannelController;
import com.heima.media.mapper.WmChannelMapper;
import com.heima.media.service.WmChannelService;
import com.heima.model.wemedia.pojos.pojos.WmChannel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
@Slf4j
public class WmChannelServiceImpl extends ServiceImpl<WmChannelMapper, WmChannel> implements WmChannelService {
    @Autowired
    private WmChannelMapper wmChannelMapper;

    @Override
    public List<WmChannel> findChannel() {
        return  wmChannelMapper.findChannel();
    }
}